package dongze.com.ckdj.databinding.model;

import android.databinding.BaseObservable;
import android.databinding.Bindable;
import android.graphics.drawable.Drawable;
import android.view.View;

import dongze.com.ckdj.BR;

/**
 * Created by fanqwz on 2017/8/2.
 */

public class MassLossImageItemModel extends BaseObservable {
    @Bindable
    public Boolean getLoading() {
        return loading;
    }

    public void setLoading(Boolean loading) {
        if (this.loading != loading) {
            this.loading = loading;
            notifyPropertyChanged(BR.loading);
        }
    }

    Boolean loading = false;

    View.OnClickListener onNewClicked;

    public View.OnClickListener getOnImageClicked() {
        return onImageClicked;
    }

    public void setOnImageClicked(View.OnClickListener onImageClicked) {
        this.onImageClicked = onImageClicked;
    }

    View.OnClickListener onDeleteClicked;
    View.OnClickListener onImageClicked;
    String imageFile;
    @Bindable
    public int getVisibility() {
        return visibility;
    }

    public void setVisibility(int visibility) {
        this.visibility = visibility;
    }

    int visibility = View.GONE;

    @Bindable
    public View.OnClickListener getOnNewClicked() {
        return onNewClicked;
    }

    public void setOnNewClicked(View.OnClickListener onNewClicked) {
        this.onNewClicked = onNewClicked;
        notifyPropertyChanged(BR.onNewClicked);
    }

    @Bindable
    public View.OnClickListener getOnDeleteClicked() {
        return onDeleteClicked;
    }

    public void setOnDeleteClicked(View.OnClickListener onDeleteClicked) {
        this.onDeleteClicked = onDeleteClicked;
        notifyPropertyChanged(BR.onDeleteClicked);
    }

    @Bindable
    public String getImageFile() {
        return imageFile;
    }

    public void setImageFile(String imageFile) {
        this.imageFile = imageFile;
        notifyPropertyChanged(BR.imageFile);
    }
}
